#include <xp/bas/string.h>
#include <xp/bas/stdio.h>

int xp_main ()
{
	xp_char_t buf[5];

	xp_printf (XP_TEXT("%ld\n"), 
		(long)xp_strset(buf, XP_CHAR('a'), xp_countof(buf)));
	xp_printf (XP_TEXT("%ld [%s]\n"), (long)xp_strlen(buf), buf);

	xp_printf (XP_TEXT("%ld\n"), 
		(long)xp_strxset(buf, xp_countof(buf), XP_CHAR('A'), xp_countof(buf)));
	xp_printf (XP_TEXT("%ld [%s]\n"), (long)xp_strlen(buf), buf);

	return 0;
}
